package com.sinosoft.ebusiness.domain.elementManage;
// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * POJO类GeProductSectionItemkindId
 */
@Embeddable
public class GeProductSectionItemkindId implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 779864672400456453L;

	/** 属性险别代码 */
	private String kindCode;

	/** 属性险种代码 */
	private String riskCode;

	/** 属性combocode */
	private String combocode;

	/**
	 * 类GeProductSectionItemkindId的默认构造方法
	 */
	public GeProductSectionItemkindId() {
	}

	/**
	 * 属性险别代码的getter方法
	 */

	@Column(name = "KINDCODE")
	public String getKindCode() {
		return this.kindCode;
	}

	/**
	 * 属性险别代码的setter方法
	 */
	public void setKindCode(String kindCode) {
		this.kindCode = kindCode;
	}

	/**
	 * 属性险种代码的getter方法
	 */

	@Column(name = "RISKCODE")
	public String getRiskCode() {
		return this.riskCode;
	}

	/**
	 * 属性险种代码的setter方法
	 */
	public void setRiskCode(String riskCode) {
		this.riskCode = riskCode;
	}

	/**
	 * 属性combocode的getter方法
	 */

	/*@Column(name = "COMBOCODE")
	public String getCombocode() {
		return this.combocode;
	}

	*//**
	 * 属性combocode的setter方法
	 *//*
	public void setCombocode(String combocode) {
		this.combocode = combocode;
	}*/

	public boolean equals(Object other) {
		if ((this == other)) {
			return true;
		}
		if ((other == null)) {
			return false;
		}
		if (!(other instanceof GeProductSectionItemkindId)) {
			return false;
		}
		GeProductSectionItemkindId castOther = (GeProductSectionItemkindId) other;

		return ((this.getKindCode() == castOther.getKindCode()) || (this
				.getKindCode() != null && castOther.getKindCode() != null && this
				.getKindCode().equals(castOther.getKindCode())))
				&& ((this.getRiskCode() == castOther.getRiskCode()) || (this
						.getRiskCode() != null
						&& castOther.getRiskCode() != null && this
						.getRiskCode().equals(castOther.getRiskCode())));
				/*&& ((this.getCombocode() == castOther.getCombocode()) || (this
						.getCombocode() != null
						&& castOther.getCombocode() != null && this
						.getCombocode().equals(castOther.getCombocode())));*/
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKindCode() == null ? 0 : this.getKindCode().hashCode());
		result = 37 * result
				+ (getRiskCode() == null ? 0 : this.getRiskCode().hashCode());
		/*result = 37 * result
				+ (getCombocode() == null ? 0 : this.getCombocode().hashCode());*/
		return result;
	}

}
